<template>
    <div>
        <!-- key 是有作用域的.
        key必须保持当前的所有兄弟节点的值都是唯一的 -->
        <!-- <div>
        <h3 v-for="(value) of 100" :key="value" v-text="value"></h3>
        </div>
        <div>
        <p v-for="(value,index) of '我是一个v-fo'" :key="index" v-text="value"></p>
        </div> -->
        <!-- <div>
            <p v-for="(value,index) in a" :key="index">{{value}}:{{index}}</p>
        </div> -->
        <div>
            <ul>
                <li v-for="(value,key,index) of a" :key="index" 
                v-bind:style="{color:'red'}" 
                v-show="b===0">{{item}}</li>
            </ul>
        </div>

    </div>    
</template>
<script>
export default {
    data(){
        return{
            b:0,
            a:{
                name:"张云龙",
                age:14,
                old:"man"
            }
        } 
       
    }
}
</script>
<style>

</style>
